﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppFramework.DinosaursParkMes.TicketTask
{
    public class TicketTaskinfoMap : IEntityTypeConfiguration<TicketTaskinfo>
    {
        public void Configure(EntityTypeBuilder<TicketTaskinfo> builder)
        {
            builder.ToTable("tb_TicketTaskinfo");
            builder.Property(x => x.Missionnumber).HasComment("任务编号").HasColumnType("varchar(50)");
            builder.Property(x => x.Taskname).HasComment("任务名称").HasColumnType("varchar(50)");
            builder.Property(x => x.Sitename).HasComment("站点名称").HasColumnType("varchar(50)");
            builder.Property(x => x.Stationnumber).HasComment("站点编号").HasColumnType("varchar(50)");
            builder.Property(x => x.Technologicalprocess).HasComment("工艺流程").HasColumnType("varchar(50)");
            builder.Property(x => x.Processname).HasComment("工序名称").HasColumnType("varchar(50)");
            builder.Property(x => x.Procedurenumber).HasComment("工序编号").HasColumnType("varchar(50)");
            builder.Property(x => x.Plannedproductiontime).HasComment("计划生产时长").HasColumnType("varchar(50)");
            builder.Property(x => x.Actualproductiontime).HasComment("实际生产时长").HasColumnType("varchar(50)");
            builder.Property(x => x.Workordernumber).HasComment("工单编号").HasColumnType("varchar(50)");
        }
    }
}
